package Map_遍历;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class 键找值 {
    public static void main(String[] args) {
        Map<String,Integer> a=new HashMap<>();
        a.put("朱佳铖",18);
        a.put("李佳辉",18);
        a.put("杨杨",17);
        a.put("狗哥",21);
        Set<String> b=a.keySet();
        for (String s : b) {
            System.out.println(a.get(s));
        }

    }
}
